import request from '@/utils/request'

// 查询角色列表
export function listRole(data) {
    return request({
        url: '/advertising/list',
        method: 'post',
        data: data
    })
}

// 新增角色
export function addRole(data) {
    return request({
        url: '/advertising/add',
        method: 'post',
        data: data
    })
}

// 修改角色
export function updateRole(data) {
    return request({
        url: '/advertising/edit',
        method: 'post',
        data: data
    })
}

// 角色数据权限
export function remove(data) {
    return request({
        url: '/advertising/remove',
        method: 'post',
        data: data
    })
}
